<?php
	global $_W,$_GPC;
	if($_W['role']){
		$id = $_GPC['id'];
		$data = array(
			'tid'=>$_GPC['classid'],
			'goodsname'=>$_GPC['goodsname'],
			'titlepic'=>$_GPC['titlepic'],
			'price'=>$_GPC['price'],
			'summary'=>$_GPC['summary'],
			'details'=>$_GPC['details'],
			'grounding'=>$_GPC['grounding'],
			'pics'=>$_GPC['pics'],
			'orderid'=>$_GPC['orderid'],
		);
		$up = pdo_update('mii_ang_goods',$data,array('id'=>$id));
		if($up){
			$code = json_encode(array('status'=>'1','msg'=>'保存成功'));
			exit($code);
		}else{
			$code = json_encode(array('status'=>'2','msg'=>'保存失败'));
			exit($code);
		}
	}else{	
		$code = json_encode(array('status'=>"2",'msg'=>'没有操作权限'));
		exit($code);
	}



?>